package operations;

import Book.Booklist;

public class Exitoperation implements Ioperations{

    @Override
    public void work(Booklist booklist) {
        System.out.println("退出系统中.....");
        int currentSize = booklist.getUsedSize();
        for (int i = 0; i < currentSize; i++) {
            booklist.setBooks(i,null);
        }
        System.exit(0);
    }

}
